package common;

public class ReadyPacket implements Sendable {

	private static final long serialVersionUID = -2871869539814608167L;
	
	public final boolean ready;
	public final String whoIsReady;
	
	public ReadyPacket( String name, boolean ready ) {
		this.whoIsReady = name;
		this.ready = ready;
	}
	
	public boolean hasOwner (Player p) {
		return (p.getName().equals(whoIsReady));
	}

	public String getType() {
		return "ReadyPacket";
	}

}
